use "Table11data.dta" 
ssc install outreg2
**********************Table 11*************************


reg log_prop_cni log_AAA STD9632 total_prop log_pop30 LU_size_prop i.STATE
outreg2 using CNI.tex, replace cttop(OLS)
ivregress2 2sls log_prop_cni (log_AAA = STD9632 ) total_prop log_pop30 LU_size_prop i.STATE, first
est restore first
outreg2 using CNI.tex, cttop(First Stage) 
est restore second
outreg2 using CNI.tex, cttop(IV)


*First Stage - second column in the table 

ivregress2 2sls Prop_NeedCNI (log_AAA = STD9632), first
est restore first
outreg2 using CNI.tex, cttop(first) replace
est restore second
outreg2 using CNI.tex, cttop(second)


